package com.lanyou.esb.cook.proxy.service.push.impl;

import com.lanyou.esb.cook.proxy.entity.AccLog;
import com.lanyou.esb.cook.proxy.redis.proxy.impl.AccLogJedisProxy;
import com.lanyou.esb.cook.proxy.service.push.Push;

/**
 * 访问日志消息推送服务
 * 
 * @author Davey.wu
 */
public class AccLogPushImpl extends BasePush<AccLog> implements Push<AccLog> {

	/** Redis代理接口 **/
	private AccLogJedisProxy jedisProxy;

	@Override
	public void pushToRedis(AccLog log) throws Exception {
		if (log == null) {
			return;
		}
		jedisProxy.rpush(jedisProxy.getKeyFromObject(log), log);
	}

	public AccLogJedisProxy getJedisProxy() {
		return jedisProxy;
	}

	public void setJedisProxy(AccLogJedisProxy jedisProxy) {
		this.jedisProxy = jedisProxy;
	}
	
	
}
